package com.zerui.manager.accessauthdevice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@ApiModel("门禁授权设备绑定")
@Data
@ToString
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_access_auth_device",autoResultMap = true)
public class AccessAuthDeviceDo {

	@ApiModelProperty("主键，无业务含义")
	@TableId(value="id",type= IdType.ASSIGN_ID)
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long id;

	@ApiModelProperty("门禁授权id")
	private Long accessAuthId;

	@ApiModelProperty("门禁设备id")
	private Long deviceId;

	@ApiModelProperty("门禁设备名称")
	private String deviceName;

	@ApiModelProperty("设备编码")
	private String deviceCode;

	@ApiModelProperty("设备源 1：IoT 2：ICC")
	private Integer deviceFrom;

	@ApiModelProperty("所属产品")
	private String type;

	@ApiModelProperty("所属产品名称")
	private String typeName;

	@ApiModelProperty("设备位置")
	private String position;

	@ApiModelProperty("创建时间")
	@JsonFormat(shape = JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
	private LocalDateTime createTime;

}
